package ie.timalb.chess.main.core.movement.types;

import ie.timalb.chess.main.core.Board;
import ie.timalb.chess.main.core.Turn;
import ie.timalb.chess.main.core.movement.Movement;

public class TwoSquaresForwardOnInitialMovement extends TypeOfMovement {

	@Override
	public boolean isThisMovement(Turn turn, Movement mov, Board board)
	{				
		
		if (
			(mov.getDeltaXBasedOnColor() == 0 && mov.getDeltaYBasedOnColor() == 2) && 
			mov.getSourceSquare().isInInitialRow()
			)
		{
			return true;
		}
		else
		{
			return false;
		}
		
	}

}
